package com.buba.other.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.buba.pojo.other.HospitalGuide;
import com.buba.other.mapper.HospitalGuideMapper;
import com.buba.other.service.HospitalGuideService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.buba.pojo.system.Health;
import com.buba.utils.R;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.util.List;

/**
 * <p>
 * 院内导航表 服务实现类
 * </p>
 *
 * @author testjava
 * @since 2022-06-09
 */
@Service
public class HospitalGuideServiceImpl extends ServiceImpl<HospitalGuideMapper, HospitalGuide> implements HospitalGuideService {

    @Override
    public R findAllBYCampusId(Integer id) {
        QueryWrapper<HospitalGuide> queryWrapper = new QueryWrapper<HospitalGuide>();
            queryWrapper.eq("campus_id", id);
        List<HospitalGuide> hospitalGuide = this.list(queryWrapper);
        return R.ok().data("list", hospitalGuide);
    }
}
